home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12942 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: kearneymac.appsig.com!user
  2. From: larry_kearney@appsig.com (Larry Kearney)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Recursion
  5. Date: Wed, 03 Apr 1996 07:26:12 -0700
  6. Organization: Who ever said I was organized?
  7. Message-ID: <larry_kearney-0304960726120001@kearneymac.appsig.com>
  8. References: <31624BC2.70D2@sooner.net>
  9. NNTP-Posting-Host: kearneymac.appsig.com
  10.  
  11. > I am trying to construct a C function that will recursively convert
  12. > a string such as "1234" into it's integer equivelant (1234).
  13. > Does anyone have an idea?  This is sorta stumping me.  I am aware of 
  14. > atoi, but I am wanting to write a recursive function that does that -- 
  15. > for the fun of it.  It's sort of a little puzzle to help me learn 
  16. > recursion.  Any ideas?
  17.  
  18.  
  19. Hmmm, something smells funny here. Sorta like, ahhhhh, ya know, a homework
  20. assignment. Yeah, thats it, homework.
  21.  
  22. My idea would be for you to talk to your instructor for help. The only way
  23. you will learn is to do it yourself.
  24.  
  25. -- 
  26. Larry Kearney                   |   "You want fries with that?"
  27. Applied Signal Technology       |
  28. larry_kearney@appsig.com        |
  29.